<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

//use App\Models\PyqPostMapping;

class PyqPost extends BaseModel
{
    use SoftDeletes;

    public $timestamps = 'true';
    public $table = 'pyq_post';
    static $unguarded = true;

    const CREATED_AT = 'create_time';
    const UPDATED_AT = 'update_time';

    public function kefus()
    {
        return $this->hasMany(PyqPostMapping::class, 'post_id', "id")->select("kefu_id");
    }

}